/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chromafinal;

/**
 *
 * @author Benjamin
 */

//Allows different objects to be grouped together

import java.awt.Color;
import java.awt.Graphics;

public abstract class LevelObject {

    int otype;

    int leftx, rightx;
    public static final int BALL = 1;
    public static final int TELE = 2;
    public static final int BOOST = 3;
    public static final int WALL = 4;

    public static final int[] NPARS = {0,3,5,7,5};


    LevelObject(){}

    public void draw(Graphics g) {}

    public abstract String makeText();

    public boolean onscreen2()
    {
       return (leftx < Game.screenloc + Game.SCREEN_WIDTH && rightx > Game.screenloc);
    }

    public boolean onScreen()
    {
       return (leftx < Game.screenloc + Game.SCREEN_WIDTH);
    }

    public boolean passedScreen()
    {
        return (rightx < Game.screenloc);
    }

    public abstract void pushPlayer(Player p);

}
